<template>
  <div>
    <span>{{arr.shopName}}</span>
    <button @click="btnjia(idx)">+</button>
    <span>{{arr.count}}</span>
    <button @click="btnjian(idx)">-</button>
  </div>
</template>

<script>
export default {
  name: "mdx",
  props: ["arr", "idx"],
  methods: {
    btnjia(index) {
      this.$emit("btnjia", index);
    },
    btnjian(index) {
      this.$emit("btnjian", index);
    },
  },
};
</script>

<style>
</style>